package cn.xinfei.xdecision.common.model.component.guiderule;

import cn.xinfei.xdecision.common.model.BaseDO;
import cn.xinfei.xdecision.common.model.component.IgnoredParamCheck;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 规则块配置表(RuleBlock)实体类
 *
 * @author andy.wang
 * @since 2022-08-05 10:32:12
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@TableName("t_rule_block")
public class RuleBlock extends BaseDO {
    private static final long serialVersionUID = 153524790651348062L;

    /**
     * 主键：规则块id
     */
    @IgnoredParamCheck
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 规则id
     */
    private Long ruleId;
    /**
     * 规则版本的id，对应t_rule_version.id
     */
    private Long versionId;
    /**
     * 存放执行结果的变量
     */
    private String resultFieldCode;
    /**
     * 规则分数
     */
    private Long score;

    /**
     * 存放得分的变量
     */
    private String scoreFieldCode;


}

